package com.wcs.exam.controller.admin.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * Admin-素材信息-批量编辑请求参数
 * </p>
 *
 * @author wcs
 * @since 2025-03-24
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-素材信息-批量编辑请求参数")
public class AdminMaterialBatchEditReq implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Size(min = 1, message = "主键ID不能为空")
    @NotNull(message = "主键ID不能为空")
    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Long> ids;

    @NotNull(message = "分类ID不能为空")
    @Schema(description = "分类ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long categoryId;

}
